package com.FengChaoSystem.pojo;

import java.sql.Timestamp;
import java.util.Date;

public class Order {
    private String onlyId;
    private String goodInfo;
    private int status;
    private int transportId;
    private int toUserId;
    private Timestamp startTime;
    private Timestamp endTime;
    private Timestamp putTime;
    private String receivePhone;
    private int fromUserId;
    private String receiveAddress;
    private String sendAddress;

    public Timestamp getPutTime() {
        return putTime;
    }

    public void setPutTime(Timestamp putTime) {
        this.putTime = putTime;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public Order() {
    }

    public int getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(int fromUserId) {
        this.fromUserId = fromUserId;
    }



    @Override
    public String toString() {
        return "Order{" +
                "onlyId=" + onlyId +
                ", goodInfo='" + goodInfo + '\'' +
                ", status=" + status +
                ", transportId=" + transportId +
                ", toUserId=" + toUserId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", receivePhone='" + receivePhone + '\'' +
                '}';
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public Order(int onlyId, String goodInfo, int status, int transportId, int toUserId, Timestamp startTime, Timestamp endTime) {

        this.goodInfo = goodInfo;
        this.status = status;
        this.transportId = transportId;
        this.toUserId = toUserId;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public String getOnlyId() {
        return onlyId;
    }

    public void setOnlyId(String onlyId) {
        this.onlyId = onlyId;
    }

    public String getGoodInfo() {
        return goodInfo;
    }

    public void setGoodInfo(String goodInfo) {
        this.goodInfo = goodInfo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTransportId() {
        return transportId;
    }

    public void setTransportId(int transportId) {
        this.transportId = transportId;
    }

    public int getToUserId() {
        return toUserId;
    }

    public void setToUserId(int toUserId) {
        this.toUserId = toUserId;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }
    public void setMax(){
        this.toUserId= Integer.MAX_VALUE;
    }
}
